package com.trg.generaltool.util.cron;



import java.text.Format;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * ClassName: CronUtil
 * Description:
 * date: 2021-03-24 10:21
 *
 * @author tangrg
 * @since JDK 1.8
 */
public class CronUtil {

    public static String getNextCron(String cron) {
      /*  try {
        *//*    CronExpression cronExpression = new CronExpression(cron);
            Date date = cronExpression.getNextValidTimeAfter(new Date());
            Format format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
            return format.format(date);*//*
        } catch (ParseException e) {
            System.out.println("CRON表达式解析出错，请检查：" + e.getMessage());
        }*/
        return "";

    }

    public static void main(String[] args) {
        String nextCron = getNextCron("0 0 16 2 * ?");
        System.out.println(nextCron);
    }
}
